package com.resource.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.resource.project.entity.abstracts.AbstractEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 物料表
 * </p>
 *
 * @author resource
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TResource对象", description="物料表")
public class TResource extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "物料代码")
    private String no;

    @ApiModelProperty(value = "物料名称")
    private String name;

    @ApiModelProperty(value = "物料库存")
    private Integer amount;


}
